<?php

class Validator_ES {
    public function isValid($es) {
        if (!in_array($es->id, explode(',', SERVICE_ALLOWED_ESS))) {
            $this->error = ES_ERROR_UNKNOWN_ID;
            return false;
        }
        return true;
    }
}
